package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjFactoryOrderDeductionBill;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * <p>
 * 厂商工单扣款账单表，与工单一对一 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2024-04-07
 */
@Repository
public interface ZjFactoryOrderDeductionBillMapper extends BaseMapper<ZjFactoryOrderDeductionBill> {

    /**
     * 根据工单ID获取品牌商家结算费用
     * @param workId 工单ID
     * @return
     */
    BigDecimal getFactoryOrderSettlementPrice(@Param("workId") Long workId);
}
